<template>
  <div class="banner">
    <img class="banner-img" src="http://img1.qunarzz.com/sight/p0/201308/23/b283071686e64dfec8d65eac.jpg_600x330_390c414c.jpg" alt="">
    <div class="banner-info">
      <div class="banner-title">天安门</div>
      <div class="banner-number"><span class="iconfont banner-icon">&#xe632;</span>39</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailBanner'
}
</script>

<style scoped lang="stylus">
  .banner
    position relative
    overflow hidden
    height 0
    padding-bottom 55%
    .banner-img
      width 100%
    .banner-info
      position absolute
      right 0
      left 0
      bottom 0
      line-height .6rem
      display flex
      color #fff
      .banner-title
        font-size .32rem
        padding 0 .2rem
        flex: 1
      .banner-number
        padding 0 .4rem
        line-height .32rem
        margin-top .14rem
        height .32rem
        font-size .24rem
        border-radius .2rem
        background rgba(0, 0, 0, .8)
        .banner-icon
          font-size .24rem
</style>
